/**********************************************************
 * AnnouncementAction.java
 * Created by ankur
 * Last modified Date: Sep 12, 2008 9:10:34 AM by ankur
 * Version : 0.1
 * Copyright (c) 2008 - 2008 cyberThink Infotech Pvt. Ltd., All rights reserved.
 **********************************************************/
package com.printeverywhere.action;
import java.util.List;

import com.printeverywhere.delegator.AnnouncementServiceDelegator;
import com.printeverywhere.dto.Announcement;

/**
 * The Class AnnouncementAction.
 */
public class AnnouncementAction extends FrontBaseSupport{
	
	
	public AnnouncementAction() {
		super(false, false);
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/** The list. */
	private List<Announcement> list;
	
	
	/**
	 * Gets the announcement.
	 * 
	 * @return the announcement
	 * 
	 * @throws Exception the exception
	 */
	public String getAnnouncement() throws Exception{
		list = AnnouncementServiceDelegator.getAboveTodaysDateList();
		return SUCCESS;
	}

	/**
	 * Gets the list.
	 * 
	 * @return the list
	 */
	public List<Announcement> getList() {
		return list;
	}

	/**
	 * Sets the list.
	 * 
	 * @param list the new list
	 */
	public void setList(List<Announcement> list) {
		this.list = list;
	}

	

}


